package com
{
	import com.greensock.loading.display.ContentDisplay;
	import com.managers.Helper;
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.geom.Matrix;

	/**
	 * @project ASLphabet
	 * @file FlashObject.as
	 * @author Matthew Ladouceur
	 * @created Nov 24, 2011
	 *
	 * Copyright (c) 2011 marblemedia Interactive Inc.
	 * All Rights Reserved.
	 *
	 * http://www.marblemedia.com
	 */
	public class FlaObject extends Sprite
	{
		protected var _id:Object;
		protected var _width:Number;
		protected var _height:Number;
				
		override public function get width():Number {
			if (_width) {
				return _width;
			}else {
				return super.width;
			}
		}
		override public function set width(value:Number):void {
			_width = value;
		}
		
		override public function get height():Number {
			if (_height) {
				return _height;
			}else {
				return super.height;
			}
		}
		override public function set height(value:Number):void {
			_height = value;
		}
		
		public function set scale(value:Number):void {
			scaleX = value;
			scaleY = value;
		}
		public function get scale():Number {
			return scaleX;
		}
		public function set bottom(value:Number):void {
			y = value - height;
		}
		public function set right(value:Number):void {
			x = value - width;
		}
		public function get bottom():Number {
			return y + height;
		}
		public function get right():Number {
			return x + width;
		}
		
		public function get id():Object{
			return _id;
		}
		public function set id(value:Object):void{
			_id = value;
		}
		
		public function FlaObject()
		{
			
		}
		
		public function kill():void {
			_id = null;
		}
	}
}